import request from '@/utils/request'
export default {

  getList(currentPage,pageSize,memberSearch) {
    return request({
      url: `/member/search/${currentPage}/${pageSize}`,
      method: 'post',
      data:memberSearch
    })
  },
  getById(id) {
    return request({
      url: `/member/${id}`,
      method: 'get',
    })
  },
  modify(member){
    return request({
      url: `/member`,
      method: 'put',
      data: member
    })
  },
  delete(id){
    return request({
      url: `/member/${id}`,
      method: 'delete',
    })
  },
  getCardById(id){
    return request({
      url: `/member/card/${id}`,
      method: 'get'
    })
  },
  getReceiverById(id){
    return request({
      url: `/receiver/${id}`,
      method: 'get'
    })
  },
  getOrderById(id){
    return request({
      url: `/order/member/${id}`,
      method: 'get'
    })
  },

}
